package com.boarsoft.jsonschema.demo;

import java.util.HashMap;
import java.util.Map;

public class JsonSchemaValidateDemo {
    public static void main(String[] args){

        Map<String,Object> map=new HashMap<>();
        map.put("name","John");
        map.put("age",12);
        Map<String,Object> chineseMap=new HashMap<>();
        chineseMap.put("subject","chinese");
        chineseMap.put("score",1001);
        map.put("scores",chineseMap);
        com.boarsoft.validate.jsonschema.networknt.Validator.validate("demo", map);

    }
}
